#include<stdio.h>
int main()
{
	freopen("castle.in","w",stdout);
	printf("50 50\n");
	for (int i=0; i<50; i++ )
	{

		for (int j=0; j<50;j++)
		{
			printf("15 ");
		}
		puts("");
	}

    return 0;
}
